package com.act.constant;

/**
 * @desc 锚点位置枚举
 */
public enum ResponseEnum {

    SUCCESS(0),
    FAIL(1, "未知错误原因，请联系管理员！"),
    NOT_LOGIN(-1, "用户尚未登录或会话已过期，请重新登录！");

    private int code;

    private String desc;

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    ResponseEnum(int code) {
        this.code = code;
    }

    ResponseEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}